package com.itheima.stock.service;

import com.itheima.stock.pojo.SysPermission;
import com.itheima.stock.vo.req.PerReq;
import com.itheima.stock.vo.resp.PerEveName;
import com.itheima.stock.vo.resp.R;
import com.itheima.stock.vo.resp.TianJiaRes;

import java.util.List;

public interface PreService {

    //权限加载查询全部数据
    R<List<SysPermission>> findAll();

    //权限添加
    R<TianJiaRes> addPer(PerReq perReq);

    //权限修改
    R<TianJiaRes> updatePer(PerReq perReq);

    //删除权限
    R<TianJiaRes> upDeletePer(String id);

    //权限回显
    R<List<PerEveName>> findPerEveName();

}
